# Begin: Custom macros and commands for all e-mails BEFOREprocessing log(1,'Begin: Custom macros and commands for all e-mails BEFORE processing'); custom_sign = { if (iscalendar()) { log(1, 'suppress automatic signing, because of calendar or incompatible mail format (RTF)'); } else if (compare('subject', 'substitute', '\[nosign\]')) { log(1, 'signing suppressed by trigger'); } else { if (authenticated()) { if (has_smime_key()) { if (sign_smime()) { tagsubject('[signed OK]'); log(1,'signing successful'); } else { log(1,'signing failed, bouncing e-mail'); bounce('noseckey'); } } } } }; log(1,'End: Custom macros and commands for all e-mails BEFORE processing'); # End: Custom macros and commands for all e-mails BEFORE processing